﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Smartee.Modelling.Shapes;

namespace Smartee.Modelling.Objects
{
    public class Link : Item
    {
        private Object _first;
        private Object _second;

        public Link(Object first, Object second)
        {
            _first = first;
            _second = second;
        }

        public override Shape[] Shapes
        {
            get
            {
                return new Shape[] { new Line(_first.MiddleX, _first.MiddleY, _second.MiddleX, _second.MiddleY),
                    new Text("Link", 40 , 40, 400, 500) };
            }
        }
    }
}
